package org.hxyjs.dao;

import org.hxyjs.entity.Team;
import org.hxyjs.page.PageInfo;

import java.util.List;

public interface TeamDao {

    //查询全部
    public List<Team> getAllTeams() throws Exception;

    //按主键查询
    public Team getTeamByTno(String tno) throws Exception;

    //分页查询
    public List<Team> getTeamByPage(PageInfo pageInfo) throws Exception;

    //增删改的返回值都是整数
    //增加
    Integer addTeam(Team team) throws Exception;

    //删除
    Integer deleteTeamByTno(String tno) throws Exception;

    //修改
    Integer updateTeamByTno(Team team) throws Exception;



}
